package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the MEDCINESTORE_HASDRUGS database table.
 * 
 */
@Entity
@Table(name="MEDCINESTORE_HASDRUGS")
@NamedQuery(name="MedcinestoreHasdrug.findAll", query="SELECT m FROM MedcinestoreHasdrug m")
public class MedcinestoreHasdrug implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="MEDCINESTORE_HASDRUGS_ID")
	private long medcinestoreHasdrugsId;

	@Column(name="MEDCINESTORE_GETDRUGS_PIHAO_ID")
	private BigDecimal medcinestoreGetdrugsPihaoId;

	@Column(name="MEDCINESTORE_HASDRUGS_NUMBER")
	private BigDecimal medcinestoreHasdrugsNumber;

	@Column(name="MEDCINESTORE_MEDCINE_STOCK")
	private BigDecimal medcinestoreMedcineStock;

	//bi-directional many-to-one association to Medcinestore
	@ManyToOne
	@JoinColumn(name="MEDCINESTORE_ID")
	private Medcinestore medcinestore;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	public MedcinestoreHasdrug() {
	}

	public long getMedcinestoreHasdrugsId() {
		return this.medcinestoreHasdrugsId;
	}

	public void setMedcinestoreHasdrugsId(long medcinestoreHasdrugsId) {
		this.medcinestoreHasdrugsId = medcinestoreHasdrugsId;
	}

	public BigDecimal getMedcinestoreGetdrugsPihaoId() {
		return this.medcinestoreGetdrugsPihaoId;
	}

	public void setMedcinestoreGetdrugsPihaoId(BigDecimal medcinestoreGetdrugsPihaoId) {
		this.medcinestoreGetdrugsPihaoId = medcinestoreGetdrugsPihaoId;
	}

	public BigDecimal getMedcinestoreHasdrugsNumber() {
		return this.medcinestoreHasdrugsNumber;
	}

	public void setMedcinestoreHasdrugsNumber(BigDecimal medcinestoreHasdrugsNumber) {
		this.medcinestoreHasdrugsNumber = medcinestoreHasdrugsNumber;
	}

	public BigDecimal getMedcinestoreMedcineStock() {
		return this.medcinestoreMedcineStock;
	}

	public void setMedcinestoreMedcineStock(BigDecimal medcinestoreMedcineStock) {
		this.medcinestoreMedcineStock = medcinestoreMedcineStock;
	}

	public Medcinestore getMedcinestore() {
		return this.medcinestore;
	}

	public void setMedcinestore(Medcinestore medcinestore) {
		this.medcinestore = medcinestore;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

}